package com.letoken.platform.repo.mall.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 推广分红记录
 * </p>
 *
 * @author author
 * @since 2023-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_mall_ambassador_record")
@ApiModel(value="AppMallAmbassadorRecord对象", description="推广分红记录")
public class AppMallAmbassadorRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商城订单号")
    private String seqNo;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

//    @ApiModelProperty(value = "发行数量")
//    private BigDecimal issueAmount;

    @ApiModelProperty(value = "消费/让利金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "待流通")
    private BigDecimal waitCirculation;

    @ApiModelProperty(value = "已流通")
    private BigDecimal circulation;

    @ApiModelProperty(value = "流通总量")
    private BigDecimal totalCirculation;

    @ApiModelProperty(value = "流通状态（0流通未结束，1流通已结束）")
    private Integer status;

    @ApiModelProperty(value = "0.消费发型 1.让利发型")
    private Integer type;

    @ApiModelProperty(value = "发行时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "流通周期")
    private Integer circulateRound;

    @ApiModelProperty(value = "订单让利值")
    private BigDecimal contributing;

    @ApiModelProperty(value = "获得分红时的等级")
    private Integer level;

    @ApiModelProperty(value = "分红来源的等级")
    private Integer bonusLevel;

    private Integer mallType;


}
